<%inherit file="/base.html"/>

<%def name="main_heading()">${c.main_heading}</%def>

<%def name="content()">

<table class="messages-table">
	% for receipt in c.receipts:
	<tr class="${'read' if receipt.is_read else 'unread'}">
		<td class="message-sender">${receipt.message.sender.short_name()}</td>
		<td class="message-time">${h.format_datetime(receipt.message.created)}</td>
		<td class="message-text">${receipt.message.text}</td>
	</tr>
	% endfor
</table>

</%def>